
 
package fr.jade.service.nodes.allocator;

/**
 * Exception for resource allocation.
 * @author nono
 * @contact noel.depalma@inrialpes.fr
 */
public class AllocatorException extends Exception {

    Exception nested_exception = null;

    /**
     * Create a nested exception.
     * 
     * @param s
     *            Comment associtaed with the exception
     * @param e
     *            Nested exception
     */
    public AllocatorException(String s, Exception e) {
        super(s);
        nested_exception = e;
    }

    /**
     * Create an exception
     * 
     * @param s
     *            Comment associtaed with the exception
     */
    public AllocatorException(String s) {
        super(s);
        
    }

    /**
     * Return the nested exception associated with an exception
     * 
     * @return The nested exception
     */
    public Exception getNestedException() {
        return nested_exception;
    }
   

}
